@extends('layouts.accountmanage')

@section('title', '充值记录')

@section('header')
	@include('layouts.header-two')
@endsection

@section('content')
<div class="wrapper-container">
<div class="orderManage-wrapper">
	<div class="orderManage-title">
		<div class="container">
			<h2>用户管理中心</h2>					
		</div>					
	</div>
	<div class="orderManage-tab">
		<div class="container">
			<div class="row">
				<div class="col-md-2">
					<div class="orderManage-in">
						<a href="{{ route('home') }}">资料管理</a>		
						<a href="{{ route('userorders') }}">订单管理</a>	
						<a class="manage-active" href="#">余额管理</a>	

					</div>	
				</div>
				<div class="col-md-10">
					<div class="orderManage-inner">
						<div class="curret-account">
							<span>当前余额：</span>
							<span><i class="curret-num">{{ $user_coin }}</i>金币</span>
							<a href="{{ route('payment') }}" class="buy-btn">充值</a>
						</div>
						<div class="table-responsive">
						  	<table class="table table-bordered">
								<tr>
									<th>支付金额</th>
									<th>到账金币</th>
									<th>充值渠道</th>
									<th>充值时间</th>
								</tr>
								@foreach ( $recharge as $item)
								<tr>
						  			<td class="recharge-num">&yen;&nbsp;{{ $item->pay_amount}}</td>
						  			<td class="recharge-num">{{ $item->amount}}</td>
						  			<td>@if ($item->pay_way == 'alipay-web')
						  					支付宝网页版
										@elseif($item->pay_way == 'system')
											系统赠送
						  				@endif
						  			 </td>
						  			<td class="time">{{ $item->created_at}}</td>
						  		</tr>
						  		@endforeach
						  	</table>
						</div>
						<div class="page">
							{!! $recharge->render() !!}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
@endsection

@section('footer')
	@include('layouts.footer')
@endsection
